package com.timeriver.domain.vo;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;

@Data
public class VersionVO {

    private String id;

    private String key;

    private Date createTime;

    private int version;

    public String getKey() {
        return StringUtils.isEmpty(key) ? id : key;
    }
}
